#ifndef _BASIC_MODEL_H_
#define _BASIC_MODEL_H_
#include <atlstr.h>
#include <stdio.h>
#include <d3d9.h>
#include <d3dx9.h>

#pragma comment (lib, "d3d9.lib")
#pragma comment (lib, "d3dx9.lib")

#pragma once

class VBasicModel
{
public:
	VBasicModel(void);
	~VBasicModel(void);

	LPDIRECT3DVERTEXBUFFER9 v_buffer;    // the pointer to the vertex buffer
	LPDIRECT3DINDEXBUFFER9 i_buffer;    // the pointer to the index buffer

	void Init();
	void Update();
	void Draw();
	void Release();

	void SetCubeSize(float fSize);
	void SetCubePosition(float fPosX,float fPosY, float fPosZ);
private:
	D3DXVECTOR3 m_v3Position;
	float m_fCubeSize;
	BOOL m_bCanDraw;
};
#endif